interface FetchMedicalAdviceDetailAPIResData {
  code: number
  msg: string
  time: string
  data: MedicalAdvice
}

interface FetchMedicalAdviceDetailAPIParams {
  id: string
}

export function fetchMedicalAdviceDetailAPI(params: FetchMedicalAdviceDetailAPIParams, token: string) {
  return httpInstance.get<FetchMedicalAdviceDetailAPIResData, FetchMedicalAdviceDetailAPIParams>(
    '/api/reserve_order/doctoradvisedetail',
    { params, headers: { token } },
  )
}
